#include <iostream>
#include "threadPool.h"

void sub(void *arg)
{
    int a = *(int *) arg;
    std::cout << a << std::endl;
    delete (int *) arg;
}


int main()
{
    threadPool pool(5);

    for (int i = 0; i < 101; i++)
    {
        pool.addTask(sub, new int(i));
    }

}
